package com.example.tse.rbhttpservice.service.shopping.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.shopping.model.ShoppingGetGoods;
/**
* 获取当前用户的购物车中商品，按仓库组合商品，商品的关税为商品对应的分类的关税，团购的商品限购数量为0时，不能选择该商品，点击选择按钮提示已售罄，商品数量不能更改
* @author wliu
* edit tse
*/
public class ShoppingGet extends RudderResponse{

private String wareName = "";


private List<ShoppingGetGoods> goods = new ArrayList<ShoppingGetGoods>();


private String subTax = "";


private String total = "";


private String areaId = "";


private String checked = "";


/**
* @return wareName
*/
public String getWareName() {
return this.wareName;
}

/**
* @return wareName
*/
public void setWareName(String wareName) {
this.wareName = wareName;
}
/**
methodName    WareName
type          String
name          wareName
defaultType   ""
*/

/**
* @return goods
*/
public List<ShoppingGetGoods> getGoods() {
return this.goods;
}

/**
* @return goods
*/
public void setGoods(List<ShoppingGetGoods> goods) {
this.goods = goods;
}
/**
methodName    Goods
type          List<ShoppingGetGoods>
name          goods
defaultType   new ArrayList<ShoppingGetGoods>()
*/

/**
* @return subTax
*/
public String getSubTax() {
return this.subTax;
}

/**
* @return subTax
*/
public void setSubTax(String subTax) {
this.subTax = subTax;
}
/**
methodName    SubTax
type          String
name          subTax
defaultType   ""
*/

/**
* @return total
*/
public String getTotal() {
return this.total;
}

/**
* @return total
*/
public void setTotal(String total) {
this.total = total;
}
/**
methodName    Total
type          String
name          total
defaultType   ""
*/

/**
* @return areaId
*/
public String getAreaId() {
return this.areaId;
}

/**
* @return areaId
*/
public void setAreaId(String areaId) {
this.areaId = areaId;
}
/**
methodName    AreaId
type          String
name          areaId
defaultType   ""
*/

/**
* @return checked
*/
public String getChecked() {
return this.checked;
}

/**
* @return checked
*/
public void setChecked(String checked) {
this.checked = checked;
}
/**
methodName    Checked
type          String
name          checked
defaultType   ""
*/

/**


    private static void filterFor(ShoppingGetGoods shopping) {
        if (shopping.getObjIdent() == null) {
            shopping.setObjIdent("");
        }
        if (shopping.getName() == null) {
            shopping.setName("");
        }
        if (shopping.getPrice() == null) {
            shopping.setPrice("");
        }
        if (shopping.getQuantity() == null) {
            shopping.setQuantity("");
        }
        if (shopping.getThumbnailPic() == null) {
            shopping.setThumbnailPic("");
        }
        if (shopping.getSpec() == null) {
            shopping.setSpec("");
        }
        if (shopping.getChecked() == null) {
            shopping.setChecked("");
        }
        if (shopping.getLimitNum() == null) {
            shopping.setLimitNum("");
        }
        if (shopping.getStoreNum() == null) {
            shopping.setStoreNum("");
        }
    }

    public static void filter(ShoppingGet shopping) {
        if (shopping.getWareName() == null) {
            shopping.setWareName("");
        }
        if (shopping.getGoods() == null) {
            shopping.setGoods(new ArrayList<ShoppingGetGoods>());
        } else {
            for (ShoppingGetGoods item : shopping.getGoods()) {
                filterFor(item);
            }
        }
        if (shopping.getSubTax() == null) {
            shopping.setSubTax("");
        }
        if (shopping.getTotal() == null) {
            shopping.setTotal("");
        }
        if (shopping.getAreaId() == null) {
            shopping.setAreaId("");
        }
        if (shopping.getChecked() == null) {
            shopping.setChecked("");
        }
    }

*/

}
